package bag

import (
	"game/game-db/orm"
	"game/game-db/orm/metag"
)

type Bag struct {
	orm.DbEntity
	PlayerId int64           `orm:"name=player_id;comment=玩家ID;readonly"`
	Items    map[int32]int64 `orm:"comment=道具信息;extra=text"`
}

func (t *Bag) TableMetag() metag.TableMetag {
	tableTag := metag.TableMetag{
		Name:    "bag",
		Comment: "玩家背包表",
		Indexes: make([]metag.IndexMetag, 0),
	}
	return tableTag
}
